home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (C) 1994, 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of AFPL Ghostscript.
-
- AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author or
- distributor accepts any responsibility for the consequences of using it, or
- for whether it serves any particular purpose or works at all, unless he or
- she says so in writing. Refer to the Aladdin Free Public License (the
- "License") for full details.
-
- Every copy of AFPL Ghostscript must include a copy of the License, normally
- in a plain ASCII text file named PUBLIC. The License grants you the right
- to copy, modify and redistribute AFPL Ghostscript, but only under certain
- conditions described in the License. Among other things, the License
- requires that the copyright notice and this notice be preserved on all
- copies.
- */
-
- /*$Id: gsht1.h,v 1.2 2000/09/19 19:00:29 lpd Exp $ */
- /* Extended public interface to halftones */
-
- #ifndef gsht1_INCLUDED
- # define gsht1_INCLUDED
-
- #include "gsht.h"
-
- /* Procedural interface */
- int gs_setcolorscreen(P2(gs_state *, gs_colorscreen_halftone *));
- int gs_currentcolorscreen(P2(gs_state *, gs_colorscreen_halftone *));
-
- /*
- * We include sethalftone here, even though it is a Level 2 feature,
- * because it turns out to be convenient to define setcolorscreen
- * using sethalftone.
- */
- #ifndef gs_halftone_DEFINED
- # define gs_halftone_DEFINED
- typedef struct gs_halftone_s gs_halftone;
-
- #endif
- /*
- * gs_halftone structures may have complex substructures. We provide two
- * procedures for setting them. gs_halftone assumes that the gs_halftone
- * structure and all its substructures was allocated with the same allocator
- * as the gs_state; gs_halftone_allocated looks in the structure itself (the
- * rc.memory member) to find the allocator that was used. Both procedures
- * copy the top-level structure (using the appropriate allocator), but take
- * ownership of the substructures.
- */
- int gs_sethalftone(P2(gs_state *, gs_halftone *));
- int gs_sethalftone_allocated(P2(gs_state *, gs_halftone *));
- int gs_currenthalftone(P2(gs_state *, gs_halftone *));
-
- #endif /* gsht1_INCLUDED */
-